Only methods can access objects {encapsulation, programming}.
You can make a child class with all the members and methods of a parent class, and then add extra members and methods {inheritance, programming}.
If classes share common methods, the same methods can apply to all the classes {polymorphism, programming}.
You can use a child-class instance if you can use a parent-class instance {Liskov Substitution Principle}.
3-Computer Science-Software-Programming-Techniques
Outline of Knowledge Database Home Page
Description of Outline of Knowledge Database
Date Modified: 2022.0225